package com.hckj.jianzhijia.popupwindows;

import android.content.Context;
import android.view.View;

import com.hckj.jianzhijia.utils.Data;

/**
 * Created by 赵奇隆 on 2015-10-28.
 */
public class PublishPopupWindowPayType extends ListPopupWindow {

    private PublishPopWinPayTypeInterface publishPopWinPayTypeInterface;

    public PublishPopupWindowPayType(Context context,PublishPopWinPayTypeInterface publishPopWinPayTypeInterface, View parentView, View anchorView) {
        super(context, parentView, anchorView, Data.payTypeData);
        this.publishPopWinPayTypeInterface = publishPopWinPayTypeInterface;
    }

    @Override
    public void getListItem(int position, String itemName) {
        publishPopWinPayTypeInterface.setPayType(position,itemName);
    }

    public interface PublishPopWinPayTypeInterface{
        public void setPayType(int position,String name);
    }
}
